package behavior.Observer;

/**
 * Created by LYJ on 2016/10/21.
 * 具体主题角色
 */
public class ConcreteSubject extends Subject {
    private String subjectState;

    public String getSubjectState() {
        return subjectState;
    }

    public void setSubjectState(String subjectState) {
        this.subjectState = subjectState;
        System.out.println("当前主题状态为："+subjectState);
        this.notifyObservers(subjectState);
    }
}
